package com.onlyxiahui.common.action.description.bean;

import java.util.ArrayList;
import java.util.List;

/**
 * 
 * <br>
 * Date 2019-11-01 08:54:39<br>
 * 
 * @author XiaHui [onlovexiahui@qq.com]<br>
 * @since 1.0.0
 */

public class PropertyData {

	private String name;
	private String description;
	private String type;
	private String className;
	private String example;
	private boolean ignore = false;

	private List<ValidateData> validates;
	private List<PropertyData> nodes;

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public boolean isIgnore() {
		return ignore;
	}

	public void setIgnore(boolean ignore) {
		this.ignore = ignore;
	}

	public List<ValidateData> getValidates() {
		return validates;
	}

	public void setValidates(List<ValidateData> validates) {
		this.validates = validates;
	}

	public void addValidate(ValidateData vd) {
		if (null == validates) {
			validates = new ArrayList<>();
		}
		validates.add(vd);
	}

	public List<PropertyData> getNodes() {
		return nodes;
	}

	public void setNodes(List<PropertyData> nodes) {
		this.nodes = nodes;
	}

	public String getExample() {
		return example;
	}

	public void setExample(String example) {
		this.example = example;
	}
}
